package com.hotec.PROJECT_NAME.modules.cmd.interceptor;


import com.hotec.PROJECT_NAME.modules.cmd.support.Command;
import com.hotec.PROJECT_NAME.modules.cmd.support.CommandContext;

/**
 * Created by ldz666 on 2022/9/14.
 */
public interface CommandInterceptor {
    <T> T execute(CommandContext context, Command<T> command);

    CommandInterceptor getNext();

    void setNext(CommandInterceptor next);
}
